import {
  UserOutlined,
  SafetyOutlined,
  ShareAltOutlined,
  ExperimentOutlined,
  ClearOutlined,
  FundOutlined,
  UsergroupAddOutlined,
  HomeOutlined,
  ContactsOutlined,
  ContainerOutlined,
  UserSwitchOutlined,
} from '@ant-design/icons';

export default function NaviByRole() {
  let identity: any = localStorage.getItem('identity');

  let routeAdmin = {
    routes: [
      {
        name: '个人中心',
        icon: <UserOutlined />,
        path: '/PersonalCenter',
        routes: [
          {
            name: '基础信息',
            path: '/PersonalCenter/BasicMsg',
            component: '@/pages/PersonalCenter/component/BasicMsg/index',
          },
          {
            name: '个人看板',
            path: '/PersonalCenter/PersonalBoard',
            component: '@/pages/PersonalCenter/component/PersonalBoard/index',
          },
          {
            name: '子方向看板',
            path: '/PersonalCenter/TeamBoard',
            component: '@/pages/PersonalCenter/component/TeamBoard/index',
          },
          {
            name: '研究方向看板',
            path: '/PersonalCenter/DirectionBoard',
            component: '@/pages/PersonalCenter/component/DirectionBoard/index',
          },
        ],
      },
      {
        name: '队伍建设与人才培养',
        icon: <ContactsOutlined />,
        path: '/LabManage',
        routes: [
          // {
          //   name: '研究方向',
          //   path: '/LabManage/ResearchDirection',
          //   component: '@/pages/LabManage/component/ResearchDirection/index',
          // },
          {
            name: '研究团队',
            path: '/LabManage/ResearchTeam',
            component: '@/pages/LabManage/component/ResearchTeam/index',
          },
          {
            name: '人才情况',
            path: '/LabManage/TalentSituation',
            component: '@/pages/LabManage/component/TalentSituation/index',
          },
          {
            name: '团队建设',
            path: '/LabManage/TeamBuilding',
            component: '@/pages/LabManage/component/TeamBuilding/index',
          },
          {
            name: '研究生培养',
            path: '/SystemManage/PostgraduateTraining',
            component:
              '@/pages/SystemManage/component/PostgraduateTraining/index',
          },
          {
            name: '学术委员会',
            path: '/LabManage/AcademicCommittee',
            component: '@/pages/LabManage/component/AcademicCommittee/index',
          },
          {
            name: '重要学术组织任职',
            path: '/LabManage/AcademicOrganization',
            component: '@/pages/LabManage/component/AcademicOrganization/index',
          },
          {
            name: '重要学术期刊任职',
            path: '/LabManage/AcademicJournals',
            component: '@/pages/LabManage/component/AcademicJournals/index',
          },
          {
            name: '国家重大科技计划',
            path: '/LabManage/NationalMajorTechnology',
            component:
              '@/pages/LabManage/component/NationalMajorTechnology/index',
          },
        ],
      },
      {
        name: '科学研究',
        icon: <ExperimentOutlined />,
        path: '/LabAchievements/ScientificResearch',
        routes: [
          {
            path: '/LabAchievements/ScientificResearch/HorizontalProject',
            name: '横向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/InterCoopProject',
            name: '国际合作项目',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/InterCoopProject/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/VerticalProject',
            name: '纵向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/Paper',
            name: '论文',
          },
          {
            path: '/LabAchievements/ScientificResearch/Monograph',
            name: '专著',
          },
          {
            path: '/LabAchievements/ScientificResearch/Standard',
            name: '标准',
          },
          {
            path: '/LabAchievements/ScientificResearch/Reward',
            name: '奖励',
          },
          {
            path: '/LabAchievements/ScientificResearch/ApplyPatent',
            name: '申请专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/GrantPatent',
            name: '授权专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/AchieveTransform',
            name: '成果转换',
          },
          {
            path: '/LabAchievements/ScientificResearch/SoftwareCopyright',
            name: '软件著作权',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/SoftwareCopyright/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/ResearchEquipment',
            name: '仪器设备研制',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/ResearchEquipment/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/OtherAchievements',
            name: '其他标志性成果',
          },
          {
            path: '/LabAchievements/ScientificResearch/AnnualRepresentative',
            name: '年度代表性成果',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/AnnualRepresentative/index',
          },
        ],
      },
      // {
      //   name: '人才培养',
      //   icon: <UsergroupAddOutlined />,
      //   path: '/LabAchievements/PersonnelTraining',
      //   routes: [
      //     {
      //       path: '/LabAchievements/PersonnelTraining/ExcellentMasterDoc',
      //       name: '优秀硕博',
      //       component:
      //         '@/pages//LabAchievements/PersonnelTraining/component/ExcellentMasterDoc/index',
      //     },
      //     {
      //       path: '/LabAchievements/PersonnelTraining/JointTrain',
      //       name: '联合培养',
      //       component:
      //         '@/pages//LabAchievements/PersonnelTraining/component/JointTrain/index',
      //     },
      //     {
      //       path: '/LabAchievements/PersonnelTraining/VisitingScholar',
      //       name: '访问学者',
      //       component:
      //         '@/pages//LabAchievements/PersonnelTraining/component/VisitingScholar/index',
      //     },
      //     {
      //       path: '/LabAchievements/PersonnelTraining/TalentTitle',
      //       name: '人才称号',
      //       component:
      //         '@/pages//LabAchievements/PersonnelTraining/component/TalentTitle/index',
      //     },
      //   ],
      // },
      {
        name: '合作交流',
        icon: <ShareAltOutlined />,
        path: '/LabAchievements/CooperationExchange',
        routes: [
          {
            path: '/LabAchievements/CooperationExchange/LeaderResearch',
            name: '领导调研',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/LeaderResearch/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/OpenSharing',
            name: '开放共享',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/OpenSharing/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/OpenTopics',
            name: '开放课题',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/OpenTopics/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/HostMeetings',
            name: '主办承办会议',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/HostMeetings/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/MeetingReport',
            name: '大会报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/MeetingReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/LabInvitedReport',
            name: '实验室特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/LabInvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InvitedReport',
            name: '大会特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InternationalMeetings',
            name: '国内外学术交流',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InternationalMeetings/index',
          },
        ],
      },
      // {
      //   name: '研究生培养',
      //   icon: <ContainerOutlined />,
      //   path: '/PostgraduateDevelop',
      //   routes: [
      //     {
      //       name: '个人管理',
      //       path: '/PostgraduateDevelop/PersonalManagement',
      //       component: '@/pages/PostgraduateDevelop/PersonalManagement/index',
      //     },
      //     {
      //       name: '团队共享',
      //       path: '/PostgraduateDevelop/TeamSharing',
      //       component: '@/pages/PostgraduateDevelop/TeamSharing/index',
      //     },
      //     {
      //       name: '学生管理',
      //       path: '/PostgraduateDevelop/StudentManagement',
      //       component: '@/pages/PostgraduateDevelop/StudentManagement/index',
      //     },
      //   ],
      // },

      {
        path: '/SystemManage',
        name: '系统管理',
        icon: <SafetyOutlined />,
        routes: [
          // {
          //   name: '事务管理',
          //   path: '/SystemManage/TransactionManagement',
          //   component:
          //     '@/pages/SystemManage/component/TransactionManagement/index',
          // },
          {
            path: '/SystemManage/DirectionManagement',
            name: '研究方向管理',
            component:
              '@/pages/SystemManage/component/DirectionManagement/index',
          },
          {
            path: '/SystemManage/TeamManagement',
            name: '子方向管理',
            component: '@/pages/SystemManage/component/TeamManagement/index',
          },
          {
            path: '/SystemManage/UserManagement',
            name: '用户管理',
            component: '@/pages/SystemManage/component/UserManagement/index',
          },

          // {
          //   name: '阶段管理',
          //   path: '/PostgraduateDevelop/StageManagement',
          //   component: '@/pages/PostgraduateDevelop/StageManagement/index',
          // },
          // {
          //   path: '/SystemManage/StudentManagement',
          //   name: '学生管理',
          //   component: '@/pages/SystemManage/component/StudentManagement/index',
          // },
          {
            name: '人员流动',
            path: '/PeopleComeGo',
            component: '@/pages/PeopleComeGo/index',
          },
        ],
      },
      {
        name: '数据导出',
        icon: <FundOutlined />,
        path: '/DataExport',
        routes: [
          {
            path: '/DataExport/DataBoard',
            name: '数据看板',
            component: '@/pages/DataExport/component/DataBoard/index',
          },
          {
            path: '/DataExport/IntelligentReport',
            name: '智能报表',
            component: '@/pages/DataExport/component/IntelligentReport/index',
          },
        ],
      },
      // {
      //   name: '实验室概况',
      //   path: '/Home',
      //   icon: <HomeOutlined />,
      //   component: '@/pages/Home/index',
      // },
    ],
  };
  let routeStu = {
    routes: [
      {
        name: '研究生培养',
        icon: <ContainerOutlined />,
        path: '/PostgraduateDevelop',
        routes: [
          {
            name: '个人管理',
            path: '/PostgraduateDevelop/PersonalManagement',
            component: '@/pages/PostgraduateDevelop/PersonalManagement/index',
          },
          {
            name: '团队共享',
            path: '/PostgraduateDevelop/TeamSharing',
            component: '@/pages/PostgraduateDevelop/TeamSharing/index',
          },
        ],
      },
      {
        name: '个人中心',
        icon: <UserOutlined />,
        path: '/PersonalCenter',
        routes: [
          {
            name: '基础信息',
            path: '/PersonalCenter/BasicMsg',
            component: '@/pages/PersonalCenter/component/BasicMsg/index',
          },
          // {
          //   name: '我的事务',
          //   path: '/PersonalCenter/TransactionFlow',
          //   component: '@/pages/PersonalCenter/component/TransactionFlow/index',
          // },
          // {
          //   name: '个人看板',
          //   path: '/PersonalCenter/PersonalBoard',
          //   component: '@/pages/PersonalCenter/component/PersonalBoard/index',
          // },
          // {
          //   name: '团队看板',
          //   path: '/PersonalCenter/TeamBoard',
          //   component: '@/pages/PersonalCenter/component/TeamBoard/index',
          // },
          // {
          //   name: '方向看板',
          //   path: '/PersonalCenter/DirectionBoard',
          //   component: '@/pages/PersonalCenter/component/DirectionBoard/index',
          // },
        ],
      },
    ],
  };
  let routeUser = {
    routes: [
      {
        name: '个人中心',
        icon: <UserOutlined />,
        path: '/PersonalCenter',
        routes: [
          {
            name: '基础信息',
            path: '/PersonalCenter/BasicMsg',
            component: '@/pages/PersonalCenter/component/BasicMsg/index',
          },
          {
            name: '个人看板',
            path: '/PersonalCenter/PersonalBoard',
            component: '@/pages/PersonalCenter/component/PersonalBoard/index',
          },
          // {
          //   name: '子方向看板',
          //   path: '/PersonalCenter/TeamBoard',
          //   component: '@/pages/PersonalCenter/component/TeamBoard/index',
          // },
          // {
          //   name: '研究方向看板',
          //   path: '/PersonalCenter/DirectionBoard',
          //   component: '@/pages/PersonalCenter/component/DirectionBoard/index',
          // },
        ],
      },
      {
        name: '队伍建设与人才培养',
        icon: <ContactsOutlined />,
        path: '/LabManage',
        routes: [
          {
            name: '人才情况',
            path: '/LabManage/TalentSituation',
            component: '@/pages/LabManage/component/TalentSituation/index',
          },
          {
            name: '重要学术组织任职',
            path: '/LabManage/AcademicOrganization',
            component: '@/pages/LabManage/component/AcademicOrganization/index',
          },
          {
            name: '重要学术期刊任职',
            path: '/LabManage/AcademicJournals',
            component: '@/pages/LabManage/component/AcademicJournals/index',
          },
          {
            name: '国家重大科技计划',
            path: '/LabManage/NationalMajorTechnology',
            component:
              '@/pages/LabManage/component/NationalMajorTechnology/index',
          },
        ],
      },
      {
        name: '科学研究',
        icon: <ExperimentOutlined />,
        path: '/LabAchievements/ScientificResearch',
        routes: [
          {
            path: '/LabAchievements/ScientificResearch/HorizontalProject',
            name: '横向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/InterCoopProject',
            name: '国际合作项目',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/InterCoopProject/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/VerticalProject',
            name: '纵向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/Paper',
            name: '论文',
          },
          {
            path: '/LabAchievements/ScientificResearch/Monograph',
            name: '专著',
          },
          {
            path: '/LabAchievements/ScientificResearch/Standard',
            name: '标准',
          },
          {
            path: '/LabAchievements/ScientificResearch/Reward',
            name: '奖励',
          },

          {
            path: '/LabAchievements/ScientificResearch/ApplyPatent',
            name: '申请专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/GrantPatent',
            name: '授权专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/AchieveTransform',
            name: '成果转化',
          },
          {
            path: '/LabAchievements/ScientificResearch/SoftwareCopyright',
            name: '软件著作权',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/SoftwareCopyright/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/ResearchEquipment',
            name: '仪器设备研制',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/ResearchEquipment/index',
          },

          {
            path: '/LabAchievements/ScientificResearch/OtherAchievements',
            name: '其他标志性成果',
          },
          {
            path: '/LabAchievements/ScientificResearch/AnnualRepresentative',
            name: '年度代表性成果',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/AnnualRepresentative/index',
          },
        ],
      },
      {
        name: '合作交流',
        icon: <ShareAltOutlined />,
        path: '/LabAchievements/CooperationExchange',
        routes: [
          {
            path: '/LabAchievements/CooperationExchange/HostMeetings',
            name: '主办承办会议',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/HostMeetings/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/MeetingReport',
            name: '大会报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/MeetingReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/LabInvitedReport',
            name: '实验室特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/LabInvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InvitedReport',
            name: '大会特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InternationalMeetings',
            name: '国内外学术交流',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InternationalMeetings/index',
          },
        ],
      },
      {
        name: '数据导出',
        icon: <FundOutlined />,
        path: '/DataExport',
        routes: [
          {
            path: '/DataExport/DataBoard',
            name: '数据看板',
            component: '@/pages/DataExport/component/DataBoard/index',
          },
          {
            path: '/DataExport/IntelligentReport',
            name: '智能报表',
            component: '@/pages/DataExport/component/IntelligentReport/index',
          },
        ],
      },
    ],
  };
  let routeTeamLeader = {
    routes: [
      {
        name: '个人中心',
        icon: <UserOutlined />,
        path: '/PersonalCenter',
        routes: [
          {
            name: '基础信息',
            path: '/PersonalCenter/BasicMsg',
            component: '@/pages/PersonalCenter/component/BasicMsg/index',
          },
          {
            name: '个人看板',
            path: '/PersonalCenter/PersonalBoard',
            component: '@/pages/PersonalCenter/component/PersonalBoard/index',
          },
          {
            name: '子方向看板',
            path: '/PersonalCenter/TeamBoard',
            component: '@/pages/PersonalCenter/component/TeamBoard/index',
          },
          // {
          //   name: '研究方向看板',
          //   path: '/PersonalCenter/DirectionBoard',
          //   component: '@/pages/PersonalCenter/component/DirectionBoard/index',
          // },
        ],
      },
      {
        name: '队伍建设与人才培养',
        icon: <ContactsOutlined />,
        path: '/LabManage',
        routes: [
          {
            name: '人才情况',
            path: '/LabManage/TalentSituation',
            component: '@/pages/LabManage/component/TalentSituation/index',
          },
          {
            name: '重要学术组织任职',
            path: '/LabManage/AcademicOrganization',
            component: '@/pages/LabManage/component/AcademicOrganization/index',
          },
          {
            name: '重要学术期刊任职',
            path: '/LabManage/AcademicJournals',
            component: '@/pages/LabManage/component/AcademicJournals/index',
          },
          {
            name: '国家重大科技计划',
            path: '/LabManage/NationalMajorTechnology',
            component:
              '@/pages/LabManage/component/NationalMajorTechnology/index',
          },
        ],
      },
      {
        name: '科学研究',
        icon: <ExperimentOutlined />,
        path: '/LabAchievements/ScientificResearch',
        routes: [
          {
            path: '/LabAchievements/ScientificResearch/HorizontalProject',
            name: '横向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/InterCoopProject',
            name: '国际合作项目',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/InterCoopProject/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/VerticalProject',
            name: '纵向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/Paper',
            name: '论文',
          },
          {
            path: '/LabAchievements/ScientificResearch/Monograph',
            name: '专著',
          },
          {
            path: '/LabAchievements/ScientificResearch/Standard',
            name: '标准',
          },
          {
            path: '/LabAchievements/ScientificResearch/Reward',
            name: '奖励',
          },

          {
            path: '/LabAchievements/ScientificResearch/ApplyPatent',
            name: '申请专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/GrantPatent',
            name: '授权专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/AchieveTransform',
            name: '成果转化',
          },
          {
            path: '/LabAchievements/ScientificResearch/SoftwareCopyright',
            name: '软件著作权',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/SoftwareCopyright/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/ResearchEquipment',
            name: '仪器设备研制',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/ResearchEquipment/index',
          },

          {
            path: '/LabAchievements/ScientificResearch/OtherAchievements',
            name: '其他标志性成果',
          },
          {
            path: '/LabAchievements/ScientificResearch/AnnualRepresentative',
            name: '年度代表性成果',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/AnnualRepresentative/index',
          },
        ],
      },
      {
        name: '合作交流',
        icon: <ShareAltOutlined />,
        path: '/LabAchievements/CooperationExchange',
        routes: [
          {
            path: '/LabAchievements/CooperationExchange/HostMeetings',
            name: '主办承办会议',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/HostMeetings/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/MeetingReport',
            name: '大会报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/MeetingReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/LabInvitedReport',
            name: '实验室特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/LabInvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InvitedReport',
            name: '大会特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InternationalMeetings',
            name: '国内外学术交流',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InternationalMeetings/index',
          },
        ],
      },
      {
        path: '/SystemManage',
        name: '系统管理',
        icon: <SafetyOutlined />,
        routes: [
          // {
          //   path: '/SystemManage/TeamManagement',
          //   name: '子方向管理',
          //   component: '@/pages/SystemManage/component/TeamManagement/index',
          // },
          {
            path: '/SystemManage/UserManagement',
            name: '用户管理',
            component: '@/pages/SystemManage/component/UserManagement/index',
          },
        ],
      },
      {
        name: '数据导出',
        icon: <FundOutlined />,
        path: '/DataExport',
        routes: [
          {
            path: '/DataExport/DataBoard',
            name: '数据看板',
            component: '@/pages/DataExport/component/DataBoard/index',
          },
          {
            path: '/DataExport/IntelligentReport',
            name: '智能报表',
            component: '@/pages/DataExport/component/IntelligentReport/index',
          },
        ],
      },
    ],
  };
  let routeDirLeader = {
    routes: [
      {
        name: '个人中心',
        icon: <UserOutlined />,
        path: '/PersonalCenter',
        routes: [
          {
            name: '基础信息',
            path: '/PersonalCenter/BasicMsg',
            component: '@/pages/PersonalCenter/component/BasicMsg/index',
          },
          {
            name: '个人看板',
            path: '/PersonalCenter/PersonalBoard',
            component: '@/pages/PersonalCenter/component/PersonalBoard/index',
          },
          {
            name: '子方向看板',
            path: '/PersonalCenter/TeamBoard',
            component: '@/pages/PersonalCenter/component/TeamBoard/index',
          },
          {
            name: '研究方向看板',
            path: '/PersonalCenter/DirectionBoard',
            component: '@/pages/PersonalCenter/component/DirectionBoard/index',
          },
        ],
      },
      {
        name: '队伍建设与人才培养',
        icon: <ContactsOutlined />,
        path: '/LabManage',
        routes: [
          {
            name: '人才情况',
            path: '/LabManage/TalentSituation',
            component: '@/pages/LabManage/component/TalentSituation/index',
          },
          {
            name: '重要学术组织任职',
            path: '/LabManage/AcademicOrganization',
            component: '@/pages/LabManage/component/AcademicOrganization/index',
          },
          {
            name: '重要学术期刊任职',
            path: '/LabManage/AcademicJournals',
            component: '@/pages/LabManage/component/AcademicJournals/index',
          },
          {
            name: '国家重大科技计划',
            path: '/LabManage/NationalMajorTechnology',
            component:
              '@/pages/LabManage/component/NationalMajorTechnology/index',
          },
        ],
      },
      {
        name: '科学研究',
        icon: <ExperimentOutlined />,
        path: '/LabAchievements/ScientificResearch',
        routes: [
          {
            path: '/LabAchievements/ScientificResearch/HorizontalProject',
            name: '横向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/InterCoopProject',
            name: '国际合作项目',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/InterCoopProject/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/VerticalProject',
            name: '纵向项目',
          },
          {
            path: '/LabAchievements/ScientificResearch/Paper',
            name: '论文',
          },
          {
            path: '/LabAchievements/ScientificResearch/Monograph',
            name: '专著',
          },
          {
            path: '/LabAchievements/ScientificResearch/Standard',
            name: '标准',
          },
          {
            path: '/LabAchievements/ScientificResearch/Reward',
            name: '奖励',
          },

          {
            path: '/LabAchievements/ScientificResearch/ApplyPatent',
            name: '申请专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/GrantPatent',
            name: '授权专利',
          },
          {
            path: '/LabAchievements/ScientificResearch/AchieveTransform',
            name: '成果转化',
          },
          {
            path: '/LabAchievements/ScientificResearch/SoftwareCopyright',
            name: '软件著作权',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/SoftwareCopyright/index',
          },
          {
            path: '/LabAchievements/ScientificResearch/ResearchEquipment',
            name: '仪器设备研制',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/ResearchEquipment/index',
          },

          {
            path: '/LabAchievements/ScientificResearch/OtherAchievements',
            name: '其他标志性成果',
          },
          {
            path: '/LabAchievements/ScientificResearch/AnnualRepresentative',
            name: '年度代表性成果',
            component:
              '@/pages/LabAchievements/ScientificResearch/component/AnnualRepresentative/index',
          },
        ],
      },
      {
        name: '合作交流',
        icon: <ShareAltOutlined />,
        path: '/LabAchievements/CooperationExchange',
        routes: [
          {
            path: '/LabAchievements/CooperationExchange/HostMeetings',
            name: '主办承办会议',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/HostMeetings/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/MeetingReport',
            name: '大会报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/MeetingReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/LabInvitedReport',
            name: '实验室特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/LabInvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InvitedReport',
            name: '大会特邀报告',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InvitedReport/index',
          },
          {
            path: '/LabAchievements/CooperationExchange/InternationalMeetings',
            name: '国内外学术交流',
            component:
              '@/pages/LabAchievements/CooperationExchange/component/InternationalMeetings/index',
          },
        ],
      },
      {
        path: '/SystemManage',
        name: '系统管理',
        icon: <SafetyOutlined />,
        routes: [
          // {
          //   path: '/SystemManage/DirectionManagement',
          //   name: '研究方向管理',
          //   component:
          //     '@/pages/SystemManage/component/DirectionManagement/index',
          // },
          // {
          //   path: '/SystemManage/TeamManagement',
          //   name: '子方向管理',
          //   component: '@/pages/SystemManage/component/TeamManagement/index',
          // },
          {
            path: '/SystemManage/UserManagement',
            name: '用户管理',
            component: '@/pages/SystemManage/component/UserManagement/index',
          },
        ],
      },
      {
        name: '数据导出',
        icon: <FundOutlined />,
        path: '/DataExport',
        routes: [
          {
            path: '/DataExport/DataBoard',
            name: '数据看板',
            component: '@/pages/DataExport/component/DataBoard/index',
          },
          {
            path: '/DataExport/IntelligentReport',
            name: '智能报表',
            component: '@/pages/DataExport/component/IntelligentReport/index',
          },
        ],
      },
    ],
  };

  switch (identity) {
    case '学生':
      return routeStu;
    case '用户':
      if (localStorage.getItem('identitySub') === '方向负责人+子方向负责人') {
        return routeDirLeader;
      }
      if (localStorage.getItem('identitySub') === '方向负责人') {
        return routeDirLeader;
      }
      if (localStorage.getItem('identitySub') === '子方向负责人') {
        return routeTeamLeader;
      }
      return routeUser;
    case '管理员':
      return routeAdmin;
    default:
      break;
  }
}
